﻿#ifndef BATTERY_H
#define BATTERY_H

#include "CBasicBattery.h"
#include <QWidget>
#include <QPainter>

class CRobBattery : public CBasicBattery
{
	Q_OBJECT
public:
	explicit CRobBattery(QWidget *parent = nullptr);
	~CRobBattery();
signals:

protected:
	void paintEvent(QPaintEvent *event);

private:
	// 绘制电池边框
	void drawBorder(QPainter *painter);
	// 绘制电池填充
	void drawFill(QPainter *painter);
};

#endif // BATTERY_H

